<html jwcid="@Shell" title="Transport">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>Schedules</title>
        <link jwcid="@Style" href="info.css" media="all"/>

    </head>
    <body jwcid="@Body">
        <table width="100%" border="1">

          <tr>
                
       <td width="90%">
       <span jwcid="@Phones"/>
       </td>

       <td width="10%" align="center">
      <span jwcid="@ChargeButton" serviceID="ognl:@ge.info.pages.IncityTransport@SERVICE_ID"></span>
       </td>
           </tr>

       </table>

       <br>

        <input jwcid="@Errors" exceptions='ognl:exceptions'/>

        <div align="center">
            <form jwcid="@Form" listener="listener:updateTransportType">
                <input jwcid="@PropertySelection" model='ognl:page.getComboes().getCombo("IncityTransportTypes")'
                       value='ognl:transportType' onchange="this.form.submit()"> NABC </input>
            </form>
            <hr>
            <table width="80%">
                <tr>
                    <td align="left">
                        <form jwcid="@Form" delegate="ognl:page.delegate">
                            <table>
                                <tr>
                                    <td>
                                        <input jwcid="@TextField" value="ognl:transport.outPlace" validators="validators:required,minLength=1"  />-დან
                                    </td>
                                    <td>
                                        <input jwcid="@TextField" value="ognl:transport.InPlace"/>–მდე

                                       <!--
                                       validators="validators:required,minLength=1"  />–მდე
                                    -->
                                    </td>
                               
                                    <td>
                                        <input jwcid="@Submit" action="listener:searchTransportByRoute" value="ძებნა მარშრუტით" style="width: 135px"/>
                                    </td>
                                </tr>

                            </table>
                        </form>
                    </td>
                    <td align="right">
                        <form jwcid="@Form" delegate="ognl:page.delegate">
                            <table>
                                <tr>
                                    <td>
                                        <input jwcid="@TextField" value="ognl:transport.transportNo" validators="validators:required,minLength=1"  style="width: 75px"/>
                                    </td>
                               
                                    <td>
                                        <input jwcid="@Submit" action="listener:searchTransportByNo" value="ძებნა მარშრუტის ნომრით"  style="width: 175px"/>
                                    </td>
                                </tr>
                            </table>
                        </form>
                    </td>
                </tr>
            </table>
            <hr><hr>
        </div>
        <div align="center">
            <form jwcid="@Form">
                <table>
                    <tr>
                        <td>
                            ქუჩის ძებნა
                        </td>
                        <td>
                            <input jwcid="@PropertySelection" model='ognl:page.getComboes().getCombo("Cities")'
                                   value="ognl:city" style="width: 155px">
                                NABC
                            </input>
                        </td>
                        <td>
                            <span jwcid="@TextField" value="ognl:street.streetName">  a </span>
                        </td>
                        <td>
                            ქუჩის ინდექსით:
                        </td>
                        <td>
                            <span jwcid="@TextField" value="ognl:street.streetIndex" style="width: 75px">f </span>
                        </td>
                        <td>
                            <input jwcid="@Submit" action="listener:searchStreet" value="ძებნა" style="width: 75px"/>
                        </td>
                    </tr>
                </table>

            </form>
        </div>

        <br><br>

<div style="overflow:auto; height:400px" align="center">
 

        <form jwcid="@Form">

 <span jwcid="@If" condition="ognl:transports!=null">

            <table border="1" cellpadding="15">
                <span jwcid="@For" source="ognl:transports" value="ognl:loopTransport">
                    <tr>
                         
                        <td>
                                <input type="Submit" jwcid="@Submit" parameters="ognl:loopTransport" value="SMS" style="width: 35px" action="listener:sendTransportSMS"/>
                            </td>
                            
                        <td>
                            <a jwcid="@DirectLink" listener="listener:showRoute" parameters="ognl:loopTransport">
                                <input jwcid="@Insert" value="ognl:loopTransport.transportNo"/>
                            </a>
                        </td>
                        <td bgcolor="#D8D8D8">

                            <input jwcid="@Insert" value="ognl:loopTransport.inPlace"/> &nbsp;

                        </td>
                        <td bgcolor="#FFFFFF">
                            <input jwcid="@Insert" value="ognl:loopTransport.outPlace"/> &nbsp;
                        </td>
                        <td>
                            <span jwcid="@If" condition="ognl:loopTransport.direction==1">
                                ჩვეულებრივი
                            </span>
                            <span jwcid="@Else">
                                წრიული
                            </span>
                        </td>
                    </tr>
                </span>
            </table>
            </span>
 </form>
            <span jwcid="@If" condition="ognl:routePartsDown!=null  || routePartsUp!=null">
                <table>
                    <td>
                        <font size="2">
მარშრუტი #
</font>
<b>
                                       <input jwcid="@Insert" value="ognl:trno"/>
        </b>
                                       </td>

        <tr valign="top">
                        <td width="50%">
                             <form jwcid="@Form">
                                <input type="Submit" jwcid="@Submit"  value="SMS" style="width: 35px" action="listener:sendRoutePartsDown"/>
                            </form>
                              
                            <table border="1" cellpadding="1" bgcolor="#DFDFDF">
                                <span jwcid="@For" source="ognl:routePartsDown" value="ognl:loopTransport">
                                    <tr jwcid="@Any" bgcolor='ognl:(loopTransport.searchedFor)?"#FFFFFF":"#DFDFDF"' valign="top">
                                        <td>
                                        <input jwcid="@Insert" value="ognl:loopTransport.stopCount"/>

                                     

                                       <td>
                                            <input jwcid="@Insert" value="ognl:loopTransport.outPlace"/>
                                        </td>
                                        <td>
                                            <input jwcid="@Insert" value="ognl:loopTransport.note"/>
                                        </td>
                                    </tr>
                                </span>
                            </table>
                        </td>
                        <td width="50%">
                              <span jwcid="@If" condition="ognl: routePartsUp!=null">
                                <form jwcid="@Form">
                                    <input type="Submit" jwcid="@Submit"  value="SMS" style="width: 35px" action="listener:sendRoutePartsUP"/>
                                </form>
                            </span>
                            <table border="1" cellpadding="1" bgcolor="#DFDFDF">
                                <span jwcid="@For" source="ognl:routePartsUp" value="ognl:loopTransport">
                                    <tr jwcid="@Any" bgcolor='ognl:(loopTransport.searchedFor)?"#FFFFFF":"#DFDFDF"' valign="top">
                                        <td>
                                        <input jwcid="@Insert" value="ognl:loopTransport.stopCount"/>
                                        <td>
                                            <input jwcid="@Insert" value="ognl:loopTransport.outPlace"/>
                                        </td>
                                        <td>
                                            <input jwcid="@Insert" value="ognl:loopTransport.note"/>
                                        </td>
                                    </tr>
                                </span>
                            </table>
                        </td>
                    </tr>
                </table>
            </span>
      
 
        <hr><hr>

         
        
            <span jwcid="@If" condition="ognl:streetsFound!=null && streetsFound.size()>0">
                
                 <form jwcid="@Form">
               <table border="1" bgcolor="#FFFFFF">
                    <tr>
                           <th>
                                &nbsp;
                            </th>
                        <th>
                            ქალაქი
                        </th>
                        <th>
                            ქუჩა
                        </th>
                        <th>
                            მდებარეობა
                        </th>
                        <th>
                            ძველი დასახელება
                        </th>
                        <th>
                            ინდექსები
                        </th>
                    </tr>
                    <span jwcid="@For" source="ognl:streetsFound" value="ognl:loopStreet">
                        <tr>
                           
                                <td>
                                    <input type="Submit" jwcid="@Submit" parameters="ognl:loopStreet" value="SMS" style="width: 35px" action="listener:sendSMS"/>
                                </td>
                               
                            <td>
                                <span jwcid="@Insert"
                                      value='ognl:page.getComboes().getCombo("Cities").getLabelFromPk(loopStreet.cityID)'/>
                            </td>
                            <td>
                                <span jwcid="@Insert" value="ognl:loopStreet.streetName"/>
                            </td>
                            <td>
                                <span jwcid="@Insert" value="ognl:loopStreet.location"/> &nbsp;
                            </td>
                            <td>
                                <span jwcid="@Insert" value="ognl:loopStreet.oldName"/> &nbsp;
                            </td>
                            <td>
                                <span jwcid="@Insert" value="ognl:loopStreet.streetIndex"/> &nbsp;
                            </td>
                            <td>
                                <span jwcid="@Insert" value="ognl:loopStreet.streetDistrict"/> &nbsp;
                            </td>

                        </tr>
                    </span>
                </table>
                  </form>
               
            </span>
           </div>


    </body>
</html>